<?php
/*
Single Post Template: Post - Webinar
*/
?>

<?php get_header() ?>

	<div id="container">
    
    	<?php include('breadcrumbs.php'); ?>
    
		<div id="content">

<?php the_post() ?>

			<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
				<h2 class="entry-title"><?php the_title() ?></h2>
                <?php include ('socialbuttons.php'); ?>
				<div class="entry-content">
                
                	<?php // The Video Display Code ?>
                    <?php $youtubevideo=get_post_meta($post->ID, 'YouTubeVideo', true); ?>
    				<?php if ( $youtubevideo ) : ?>
                    	<div style="margin-top: 20px;">
    						<?php include('youtubevideo.php'); ?>
                    	</div>
    				<?php else : ?>
                    
                    <?php the_content() ?>
    				
    				<?php endif; ?>
                    
                    <!-- INCLUDE RELATED POSTS BY TAG -->
                    <?php $hastags = get_the_tags();
						if ( $hastags != '' ) {
							echo '<div style="width:100%;height:1px;background-color:#cccccc;clear:both;margin-top:20px;margin-bottom:10px;"></div>';
							echo '<h3>Related Content &amp; Resources:</h3>';
							include 'tagposts-code.php' ;
						}
					?>
                    
				</div>
			</div><!-- .post -->
            
            <!-- INCLUDE END OF PAGE CTA BLOCK IF THE PAGE HAS A CTA URL -->
            <?php if(get_post_meta($post->ID, "ctaURL", true)){ include('inpagecta.php') ; } ?>

		</div><!-- #content -->
	</div><!-- #container -->

<?php get_sidebar() ?>
<?php get_footer() ?>